package com.chance.cc.crawler.development.command.schedule.tenxun;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.tenxun.realtime.TenXunNewsRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.job.domain.tenxun.trace.TenXunNewsTraceCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.schedule.CommonCrawlerJobTestScheduler;

/**
 * @author lt
 * @version 1.0
 * @date 2021-03-25 13:09:03
 * @email okprog@sina.com
 */
public class TenXunNewsCrawlerScheduler extends CommonCrawlerJobTestScheduler {
    public static void main(String[] args) {
        commonCrawlerScheduleJob(TenXunNewsRealtimeCrawlerSchedulerJob.crawlerScheduler());
        commonCrawlerScheduleJob(TenXunNewsTraceCrawlerSchedulerJob.crawlerScheduler());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_15.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_15);
    }
}
